package com.daxiasoftware.xxx.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableName;
import com.daxiasoftware.xxx.entity.SuperEntity;

/**
 * <p>
 * 支付
 * </p>
 *
 * @author daxia
 * @since 2018-01-03
 */
@TableName("pay_pay")
public class Pay extends SuperEntity<Pay> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 1，阿里，2微信
     */
	private Integer type;
    /**
     * 我方订单号
     */
	@TableField("order_no")
	private String orderNo;
    /**
     * 对方订单号
     */
	@TableField("out_order_no")
	private String outOrderNo;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 响应时间
     */
	@TableField("response_time")
	private Date responseTime;
    /**
     * 状态，0未支付，1支付成功，2支付失败
     */
	private Integer status;
    /**
     * 支付金额
     */
	private Double amount;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Integer getType() {
		return type;
	}

	public void setType(Integer type) {
		this.type = type;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getOutOrderNo() {
		return outOrderNo;
	}

	public void setOutOrderNo(String outOrderNo) {
		this.outOrderNo = outOrderNo;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getResponseTime() {
		return responseTime;
	}

	public void setResponseTime(Date responseTime) {
		this.responseTime = responseTime;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Double getAmount() {
		return amount;
	}

	public void setAmount(Double amount) {
		this.amount = amount;
	}

	@Override
	public String toString() {
		return "Pay{" +
			"id=" + id +
			", type=" + type +
			", orderNo=" + orderNo +
			", outOrderNo=" + outOrderNo +
			", createTime=" + createTime +
			", responseTime=" + responseTime +
			", status=" + status +
			", amount=" + amount +
			"}";
	}
}
